#include "DieGenerator.h"

DieGenerator::DieGenerator (void)
    :
    dice_vector()
    {
    }

DieGenerator::~DieGenerator(void)
    {
    DieGenerator::dice_vector.clear();
    }

void DieGenerator::FillDieVector(size_t NumberOfRolls)
    {
    this->dice_vector.clear();
    this->dice_vector.reserve(NumberOfRolls);

    for (size_t i = 0; i < NumberOfRolls; i++)
            {
            this->dice_vector.push_back (DieGenerator::GetRoll());

            }
    }

void DieGenerator::FillDieVector (size_t NumberOfRolls, size_t DieSides)
    {
    this->dice_vector.clear();
    this->dice_vector.reserve (DieSides);
    this->MaxDieValue = DieSides;

    for (size_t i = 0; i < NumberOfRolls; i++)
            {
            this->dice_vector.push_back (DieGenerator::GetRoll());
            }
    }
